#include "MsgQueue.hpp"
#include "ResponOfChain.hpp"

int main(){

    Entry en;
    //en.EnableAll(); //默认
    //en.DisableAll();

    //假设现在我们不需要进行打包
    en.EnableSelect(true, true, true, false);
    Server server;
    while(1){
        string rcvbuffer;
        server.MsgRcv(CLIENT_TYPE, rcvbuffer);
        cout << rcvbuffer << endl;
        if(rcvbuffer == "exit") break;

        //责任链
        en.Start(rcvbuffer);
        cout << endl;
    }
    return 0;
}